import { getQuery } from 'h3'

export default defineEventHandler(async (event) => {
  try {
    const res = await $fetch('/api/xxx/xxx', {
      baseURL: event.context.baseUrl,
      query: getQuery(event)
    })
    return res || {}
  } catch (error) {
    return error
  }
})
